
public class clprint {
	public static void main (String[] args){
		Issue[] catalog = new Issue[] {
			new Journal("Вокруг света", 17),
			new Newspaper("Новости Бреста", 18.01),
			new Book("Война и мир", "Л.Толстой")};

		for(int i = 0; i < catalog.length; i++) {
			catalog[i].print(System.out);
		}
	}
}
